 ////////////////////////////////////////////////////////////////////////////// 
//
//  jtag_define.v
//
//  指令寄存器、指令位宽、数据寄存器、数据位宽
//  配置寄存器指令、ID寄存器
//
//  Original Author: 
//  Current Owner:   
//
////////////////////////////////////////////////////////////////////////////// 
 `define NP_JTAG_IR_WIDTH 4
 `define NP_JTAG_IR_IDCODE  4'b0001
 `define NP_JTAG_IR_CFG     4'b0010
//  `define NP_JTAG_IR_CRALU   4'b
 `define NP_JTAG_IR_DSCAN   4'b1000
//  `define NP_JTAG_IR_ATEOVRD 4'b
 `define NP_JTAG_IR_BYPASS  4'b1111   // Required by 1149.1 specification

 `define NP_JTAG_DR_IDCODE_LEN  32
 `define NP_JTAG_DR_CFG_LEN     34
//  `define NP_JTAG_DR_CRALU_LEN   4
//  `define NP_JTAG_DR_ATEOVRD_LEN 5
 `define NP_JTAG_DR_BYPASS_LEN  1    // Required by 1149.1 specification


 `define NP_CFG_CMD_ADDR  2'b00
 `define NP_CFG_CMD_READ  2'b11
 `define NP_CFG_CMD_WRITE 2'b01
 `define NP_CFG_CMD_DATA  2'b10

 // Define IDCODE Value
`define NP_JTAG_DR_IDCODE_VAL_ME0   32'h19a05889
`define NP_JTAG_DR_IDCODE_VAL_ME1   32'h19a0d889
`define NP_JTAG_DR_IDCODE_VAL_ME2   32'h19a15889
`define NP_JTAG_DR_IDCODE_VAL_ME3   32'h19a1d889
`define NP_JTAG_DR_IDCODE_VAL_ME4   32'h19a25889
`define NP_JTAG_DR_IDCODE_VAL_ME5   32'h19a2d889
`define NP_JTAG_DR_IDCODE_VAL_ME6   32'h19a35889
`define NP_JTAG_DR_IDCODE_VAL_ME7   32'h19a3d889
`define NP_JTAG_DR_IDCODE_VAL_ME8   32'h19a45889
`define NP_JTAG_DR_IDCODE_VAL_ME9   32'h19a4d889
`define NP_JTAG_DR_IDCODE_VAL_ME10  32'h19a55889
`define NP_JTAG_DR_IDCODE_VAL_ME11  32'h19a5d889
`define NP_JTAG_DR_IDCODE_VAL_ME12  32'h19a65889
`define NP_JTAG_DR_IDCODE_VAL_ME13  32'h19a6d889
`define NP_JTAG_DR_IDCODE_VAL_ME14  32'h19a75889
`define NP_JTAG_DR_IDCODE_VAL_ME15  32'h19a7d889
`define NP_JTAG_DR_IDCODE_VAL_ME16  32'h19a85889
`define NP_JTAG_DR_IDCODE_VAL_ME17  32'h19a8d889
`define NP_JTAG_DR_IDCODE_VAL_ME18  32'h19a95889
`define NP_JTAG_DR_IDCODE_VAL_ME19  32'h19a9d889
`define NP_JTAG_DR_IDCODE_VAL_ME20  32'h19aa5889
`define NP_JTAG_DR_IDCODE_VAL_ME21  32'h19aad889
`define NP_JTAG_DR_IDCODE_VAL_ME22  32'h19ab5889
`define NP_JTAG_DR_IDCODE_VAL_ME23  32'h19abd889
`define NP_JTAG_DR_IDCODE_VAL_ME24  32'h19ac5889
`define NP_JTAG_DR_IDCODE_VAL_ME25  32'h19acd889
`define NP_JTAG_DR_IDCODE_VAL_ME26  32'h19ad5889
`define NP_JTAG_DR_IDCODE_VAL_ME27  32'h19add889
`define NP_JTAG_DR_IDCODE_VAL_ME28  32'h19ae5889
`define NP_JTAG_DR_IDCODE_VAL_ME29  32'h19aed889
`define NP_JTAG_DR_IDCODE_VAL_ME30  32'h19af5889
`define NP_JTAG_DR_IDCODE_VAL_ME31  32'h19afd889
// 0001             version     4bits
// 1001101_000000   M0          13bits
// 1011000_1000100  manufacturer id (Xidian University) XD  14bits
// 1                required by standard    1bit